home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / spawno30.zip / SPAWNVPO.C < prev   
C/C++ Source or Header  |  1990-09-13  |  889b  |  29 lines

  1. /********************************************************************/
  2. /*   SPAWNO v2.0      XMS/disk swapping replacement for spawn...()  */
  3. /*   (c) Copyright 1990 Ralf Brown  All Rights Reserved         */
  4. /*                                    */
  5. /*   May be freely copied provided that this copyright notice is    */
  6. /*   not altered or removed.                        */
  7. /********************************************************************/
  8.  
  9. #include "spawno.h"
  10. #include <errno.h>
  11.  
  12. extern int errno ;
  13. char * pascal __spawn_search(const char *) ;
  14.  
  15. int _Cdecl spawnvpo(const char *overlay_path, const char *name, va_list args)
  16. {
  17.    char *prog_path = __spawn_search(name) ;
  18.  
  19.    if (prog_path)
  20.       return __spawnv(overlay_path,prog_path,args,0) ;
  21.    else
  22.       {
  23.       errno = ENOENT ;    /* path or filename not found */
  24.             /* _doserrno already set by __spawn_search() */
  25.       return -1 ;
  26.       }
  27. }
  28.  
  29.